import VueRouter from 'vue-router'
import  Film from '../pages/film.vue'
import Cinema from '../pages/cinema.vue'
import Mine from '../pages/mine.vue'
import City from '../pages/City.vue'
import WellReceiving from '../pages/Well-Receiving.vue'
import ComingSoon from '../pages/Coming-Soon.vue'
import Search from '../pages/Search.vue'

export default new VueRouter({
    routes:[
        {
            path:'/',
            component:Film,
            children:[
                {
                    path:'/',
                    component:City
                }
            ]
        },
        {
            path:'/film',
            component:Film,
            children:[
                {
                    path:'/',
                    component:City
                },
                {
                    path:'city',
                    component:City
                },
                {
                    path:'well-receiving',
                    component:WellReceiving
                },
                {
                    path:'coming-soon',
                    component:ComingSoon
                },
                {
                    path:'search',
                    component:Search
                }
            ]
        },
        {
            path:'/cinema',
            component:Cinema
        },
        {
            path:'/mine',
            component:Mine
        }
    ]
})